﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Page</title>
    <link rel="stylesheet" type="text/css" media="screen" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../css/mplayer.css" />
    <script type="text/javascript" src="../script/swfobject.js"></script>
    <script type="text/javascript">		
		function closeWindow()
		{
			//document.body.removeChild(document.getElementById('ads_14'));
			//return '';
			return false;
		}
		//var bizurl = 'http://biz.vsdn.bigtv.com.cn/playlive.php?';
		//var bizurl = 'http://211.100.48.133/0111playlive.php?';
		var bizurl = 'http://biz.vsdn.bigtv.com.cn/playlive.php?';
        var playurl = '';
        var channelname = '';
        function addLoadEvent(fn) {
    	    var oldonload = window.onload;
    	    if (typeof window.onload != 'function') {
    		    window.onload = fn;
    	    } else {
    		    window.onload = function() {
    			    if (oldonload) {
    				    oldonload();
    			    }
    			    fn();
    		    };
    	    }
        }
		function goOn(url)
		{
			/*	
		    var splitindex = url.lastIndexOf('/');
		    var streamer = url.substring(0,splitindex).replace("rtsp","http");
		    var file = url.substring(splitindex+1);
		    var s1 = new SWFObject("../script/player_soooner.swf","ply","700","450","9","#FFFFFF");
		    s1.addParam("allowfullscreen","true");
		    s1.addParam("allowscriptaccess","always");
		    s1.addParam("flashvars","autostart=true&image=preview.jpg&type=video&streamer="+streamer+"&file="+file+"&title=123");
		    s1.write("ads_14");*/
		    var file = bizurl+url+"|asx";
		    var s1 = new SWFObject("../script/player_soooner.swf","ply","700","450","9","#FFFFFF");
		    s1.addParam("allowfullscreen","true");
		    s1.addParam("allowscriptaccess","always");
		    s1.addParam("flashvars","autostart=true&file="+file+"&title=123");
		    s1.write("ads_14");
		}		
		function getplayurl(uuid)
        {
    	    var playJS = document.createElement("script");
    	    playJS.src=bizurl+uuid+"|js";
    	    playJS.type='text/javascript';
    	    playJS.defer=true;
    	    document.getElementById("LPJS").appendChild(playJS);
    	    //parent.document.getElementById("debug").innerHTML +="<br>"+bizurl+uuid+"|js";
    	    /*goOn(uuid);*/
        }
        function initPage(fn) {
    	    var tmp=parent.getvalue();
    	    var tmpurl = tmp.substr(0, tmp.lastIndexOf('|') );
    	    channelname = decodeURI(tmp.substr(tmp.lastIndexOf('|')+1 ));
   	    if (tmpurl) {getplayurl(tmpurl);} 
   	    else{
   		    document.getElementById("playing").style.className="playing";
   	    }
        }
        function dropPage()
        {
    	    try{curPlayer.mdivStop.onclick(); }catch(err){}
    	    try{curPlayer.Delete();curPlayer = null;}catch(err){}
        }
        
        addLoadEvent(initPage);
	</script>
</head>
<body  onbeforeunload="dropPage();">
<div id="ads_14" style="float:left"></div>
<div id="ads_15"></div>   <div id="LJS" ></div><div id="VJS" ></div><div id="LPJS" ></div><div id="VPJS" ></div>
  <script language="javascript" id="liveJS" src=""></script>
	
</body></html>